<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<div align="left"> </div>
<table width="1158" border="0" cellpadding="0" cellspacing="0" bgcolor="#6699FF">
  <tr> 
    <td width="258" valign="top" rowspan="2"><a href="home.php"><img src="C:/xampp/htdocs/librejo/WEB/Images/libros2.jpg" width="92" height="138"><font size="7" color="#FFFFFF">Librejo!</font></a></td>
    <td width="577" height="130"></td>
    <td width="252"></td>
    <td width="16"></td>
    <td width="55"></td>
  </tr>
  <tr> 
    <td height="21"></td>
    <td valign="top">Welcome: 
    <?php
    	$serverpath=$_SERVER['DOCUMENT_ROOT'];
    	include ($serverpath.'/Classes/session.php');
    	$serial_session = file_get_contents('store_session');
    	$session = unserialize($serial_session);
		echo $session->get_user();;
    	?>
    </td>
    <td valign="top"><a href="index.html.htm">Logout</a></td>
  </tr>
</table>
<br>
<br>
<table width="1158" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="237" height="8"></td>
    <td width="103"></td>
    <td width="685"></td>
    <td width="133"></td>
  </tr>
  <tr> 
    <td height="45"></td>
    <td></td>
    <td valign="top">My Profile</td>
    <td></td>
  </tr>
  <tr> 
    <td height="10"></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td valign="top" rowspan="2"> 
      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#6699FF">
        <tr> 
          <td width="238" height="32"></td>
        </tr>
        <tr> 
          <td valign="top" height="41" bgcolor="#CCFF66"> 
            <div align="center"><font color="#999900"><b><font size="4" color="#3333FF">My 
              Profile</font></b></font></div>
          </td>
        </tr>
        <tr> 
          <td height="16"></td>
        </tr>
        <tr> 
          <td height="41" valign="top" bgcolor="#CCFF66"> 
            <div align="center"><font size="4"><b><font color="#3333FF">My Cart</font></b></font></div>
          </td>
        </tr>
        <tr> 
          <td height="15"></td>
        </tr>
        <tr> 
          <td height="41" valign="top" bgcolor="#CCFF66"> 
            <div align="center"><font size="4" color="#3333FF"><b>My Agenda</b></font></div>
          </td>
        </tr>
        <tr> 
          <td height="32"></td>
        </tr>
      </table>
    </td>
    <td height="24"></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td height="194"></td>
    <td rowspan="3" valign="top">
    <?php
    $serverpath=$_SERVER['DOCUMENT_ROOT'];
	include ($serverpath.'/Classes/Client.php');
	$serial_client = file_get_contents('store_client');
	$client = unserialize($serial_client);
	echo '<form name="updateprofile" method="POST" action="changeprofile.php">
			<p> First Name:<input type="text" name="firstname" value='.$client->get_firstname().'>     
    Last Name:
          <input type="text" name="lastname" value='.$client->get_lastname().'>
        </p>
        <p>Password: 
          <input type="text" name="password" value='.$client->get_password().'>
        </p>
        <p> Date of Birth:
          <input type="text" name="birthdate" value='.$client->get_birthdate().'>
          Country:
          <input type="text" name="country" value='.$client->get_country().'>
        </p>
        <p>Address:
          <input type="text" name="address" value='.$client->get_address().'>
        </p>
        <p> Zip Code:
          <input type="text" name="zipCode" value='.$client->get_zipCode().' >
          City:
          <input type="text" name="city" value='.$client->get_city().'>
        </p>
        <p> Credit Card:
       		<input type="text" name="cardtype" value='.$client->get_cardtype().'>
          Number:
          <input type="text" name="cardnumber" value='.$client->get_cardNumber().'>
        </p>
		<p>
			<input type="reset" name="Reset" value="Clear">
			<input type="submit" name="Submit" value="Modify">
		</p>
	</form>'
	?>
	</td>
    <td></td>
  </tr>
  <tr> 
    <td height="40"></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td valign="top" bgcolor="#6699FF" rowspan="2"> 
      <div align="center"><b>Your Benefits!</b></div>
    </td>
    <td height="93"></td>
    <td></td>
  </tr>
  <tr>
    <td height="34"></td>
    <td></td>
    <td></td>
  </tr>
</table>
</body>
</html>